﻿Public Class MenuController
    Inherits Controller
    Implements MenuListener

    Private form As New MenuAdapter

    Sub New()
        MyBase.init()
        form.getObservable().addListener(Me)
    End Sub

    Protected Overrides Function getFormAdapter() As FormAdapter(Of System.Windows.Forms.Form, FormListener)
        Return form.getAsFormAdapter()
    End Function

    Public Sub kundenAuswertungPerformed() Implements MenuListener.kundenAuswertungPerformed
        Navigation.getInstance.toKundenauswertung(Me)
    End Sub

    Public Sub stammdatenverwaltungPerformed() Implements MenuListener.stammdatenverwaltungPerformed
        Navigation.getInstance.toStammdatenverwaltung(Me)
    End Sub

    Public Sub zeitrapportPerformed() Implements MenuListener.zeitrapportPerformed
        Navigation.getInstance().toZeitrapport(Me)
    End Sub

End Class
